<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="div1" class="box">div1(class="box")</div>
    <div id="div2" class="box">div2(class="box")</div>
    <div id="div3">div3</div>
    <span class="box">span(class="box")</span>

    <br>
    <ul>
        <li>AAAAA</li>
        <li title="hello">BBBBB(title="hello")</li>
        <li class="box">CCCCC(class="box")</li>
        <li title="hello">DDDDDD(title="hello")</li>
    </ul>

    <script src="../js/jquery-1.10.1.min.js"></script>

    <script>
        // 需求:
        // 1. 选择id为div1的元素
        // console.log($("#div1"))
        // 2. 选择所有的div元素
        // console.log($("div"))
        // 3. 选择所有class属性为box的元素
        // console.log($(".box"))
        // 4. 选择所有的div和span元素
        // console.log($("div,span"))
        // 5. 选择所有class属性为box的div元素
        // console.log($("div.box"))
    </script>
</body>

</html>